package com.say.service;

import java.util.Map;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.say.bean.domain.Message;
import com.say.framework.core.common.service.BaseService;

public interface MessageService extends BaseService<Message, String> {

	Page<Map<String, Object>> findMessageByPage(Map<String, Object> params, Pageable initPage);

	Message getMessageByUserIdAndToUserId(String userId,String toUserId);
	
	void saveUnReadMessageById(String id,Integer unRead,String text);
	
	void clearUnReadMessageByUser(String userId,String toUserId);
	
}
